from selenium.webdriver.common.by import By

from base import Base
#连接
class Page(Base):
    #点击收藏
    def dianji1(self):

        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/lav_4")')
        ele=self.find_ele(loc)
        return ele
    #点击商品
    def dianji2(self):
        loc=(By.ID,'com.kongfz.app:id/iv_icon')
        ele=self.find_ele(loc)
        return ele
    #点击收藏
    def dianj3(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().text("")')
        ele=self.find_ele(loc)
        return ele
    #点击
    def dj4(self):
        loc=(By.XPATH,'//androidx.compose.ui.platform.ComposeView[@resource-id="com.kongfz.app:id/compose_view"]/android.view.View/android.view.View[2]/android.view.View[1]')
        ele=self.find_ele(loc)
        return ele
    #返回

    def dj6(self):
        loc=(By.CLASS_NAME,'android.widget.ImageView')
        ele=self.find_ele(loc)
        return ele
    def dj7(self):
        loc=(By.ACCESSIBILITY_ID,'返回')
        ele=self.find_ele(loc)
        return ele
    def dy(self):
        loc=(By.ID,'com.kongfz.app:id/tv_cart_name')
        ele=self.find_ele(loc)
        return ele
    def dy1(self):
        loc=(By.ID,'com.kongfz.app:id/tv_char_all')
        ele=self.find_ele(loc)
        return ele

